package com.yike.user.service;

import com.yike.user.entity.UserDetail;
import com.yike.user.param.UserDetailPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 后台用户详情表 服务类
 *
 * @author yike
 * @since 2024-07-17
 */
public interface UserDetailService extends BaseService<UserDetail> {

    /**
     * 保存
     *
     * @param userDetail
     * @return
     * @throws Exception
     */
    boolean saveUserDetail(UserDetail userDetail) throws Exception;

    /**
     * 修改
     *
     * @param userDetail
     * @return
     * @throws Exception
     */
    boolean updateUserDetail(UserDetail userDetail) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteUserDetail(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param userDetailPageParam
     * @return
     * @throws Exception
     */
    Paging<UserDetail> getUserDetailPageList(UserDetailPageParam userDetailPageParam) throws Exception;

}
